package com.netjava.pojo;

import java.util.HashSet;
import java.util.Set;

/**
 * Card entity.
 * 点卡
 * @author MyEclipse Persistence Tools
 */

public class Card implements java.io.Serializable {

	// Fields

	private Integer cardId;
	private User user;//该点卡的拥有者
	private Integer cardValue;//点卡的金点数
	private String other1;//备用字段
	private Set rechargerecords = new HashSet(0);//给点卡充值的历史记录

	// Constructors

	/** default constructor */
	public Card() {
	}

	/** minimal constructor */
	public Card(User user, Integer cardValue) {
		this.user = user;
		this.cardValue = cardValue;
	}

	/** full constructor */
	public Card(User user, Integer cardValue, String other1, Set rechargerecords) {
		this.user = user;
		this.cardValue = cardValue;
		this.other1 = other1;
		this.rechargerecords = rechargerecords;
	}

	// Property accessors

	public Integer getCardId() {
		return this.cardId;
	}

	public void setCardId(Integer cardId) {
		this.cardId = cardId;
	}

	public User getUser() {
		return this.user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public Integer getCardValue() {
		return this.cardValue;
	}

	public void setCardValue(Integer cardValue) {
		this.cardValue = cardValue;
	}

	public String getOther1() {
		return this.other1;
	}

	public void setOther1(String other1) {
		this.other1 = other1;
	}

	public Set getRechargerecords() {
		return this.rechargerecords;
	}

	public void setRechargerecords(Set rechargerecords) {
		this.rechargerecords = rechargerecords;
	}

}